#!/usr/bin/env python
#coding=utf-8
#author=xiaomayi0323
#date=2009/04/09    
#filename=5-10

def degree_Fahrenheit():
    x = float(raw_input("enter centigrade temperature:"))
    dge = (x - 32) * (5.0 / 9.0)
    return dge

print degree_Fahrenheit()

def centigrade_temperature():
    x = float(raw_input("enter degree Fahrenheit:"))
    cen = 32 + (x / (5.0 / 9.0))
    return cen

print centigrade_temperature()

    